package com.qfedu.openplateform.order.service.impl;

import com.qfedu.openplateform.common.entity.PopOrderData;
import com.qfedu.openplateform.common.entity.PopOrderItem;
import com.qfedu.openplateform.common.entity.ResponseData;
import com.qfedu.openplateform.common.entity.WarehouseProduct;
import com.qfedu.openplateform.order.dao.PrpOrderDateDao;
import com.qfedu.openplateform.order.service.PopOderDateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class PopOderDateServiceImpl implements PopOderDateService {

    @Autowired
    PrpOrderDateDao prpOrderDateDao;

    @Override
    public void createOrder(PopOrderData popOrderData) {

        prpOrderDateDao.createOrder(popOrderData);
        //prpOrderDateDao.addOrderItem();

    }

    @Override
    public List<PopOrderData> findOrder(PopOrderData popOrderData) {
        return prpOrderDateDao.findOrder(popOrderData);
    }


}
